package schoolWork;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-11-13
 * Time: 14:05
 */
interface Biology {
    void breath();
}

interface Animal {
    void hasSex();

    void eat();
}

interface Man {
    void think();

    void study();
}

class NormalMan implements Biology, Animal, Man {
    String name;

    public NormalMan(String name) {
        this.name = name;
    }

    public void breath() {
        System.out.println(this.name + "在呼吸");
    }

    public void hasSex() {
        System.out.println(this.name + "有性别");
    }

    public void eat() {
        System.out.println(this.name + "在吃饭");
    }

    public void think() {
        System.out.println(this.name + "在思考");
    }

    public void study() {
        System.out.println(this.name + "在学习");
    }
}

public class Test1 {
    public static void main(String[] args) {
        NormalMan normalMan = new NormalMan("圆圆");
        normalMan.eat();
        normalMan.hasSex();
        normalMan.think();
        normalMan.study();
        normalMan.breath();
    }
}
